#region Summary

// 
// Owner : JackieHan 
// 
// Solution : DailyCollection 
// 
// Project : Jackie.Utility.Notify.Test
// 
// File : TestNotifyService.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : 测试notify服务
// 
// History : 
//			2011-04-25 18:09:32	    Create 
// 

#endregion

#region Using

using System;
using System.ServiceModel;
using System.ServiceModel.Channels;
using Jackie.Utility.Notify.Domain;
using Jackie.Utility.Notify.Service;
using NUnit.Framework;

#endregion

namespace Jackie.Utility.Notify.Test
{
    /// <summary> 
    /// 测试notify服务
    /// </summary>
    [TestFixture]
    public class TestNotifyService
    {

        [SetUp]
        public void SetUp()
        {
        }

        [Test]
        public void Test()
        {
            using (var channelFactory = new ChannelFactory<IPublish>("notifyService"))
            {
                var message = new MessageInfo() { Code = "Error", Title = "OrderImport", ExtenedMessage = null, Message = "" };
                channelFactory.CreateChannel().SendMessage(message);
            }
        }

        [TearDown]
        public void TearDown()
        {
        }

    }
}